export const TOKEN_KEY = 'token'
export const refreshToken = 'refreshToken'
export const USER_KEY = 'user'
export const APP_NAME = import.meta.env.VITE_TITLE
export const BASE_URL = import.meta.env.VITE_BASE_URL
export const UPLOAD_API = BASE_URL + '/api/file/upload'
export const NODE_ENV = import.meta.env.MODE
export const DEFAULT_LANGUAGE = 'en'

//
export const portable_batter_import = '/api/portableBattery/import'
export const portable_batter_import_template = '/api/portableBattery/template'
export const portable_batter_import_export = '/api/portableBattery/export'

// 枚举
export const LANGUAGE_ENUM = [
    {label: "中文", value: "zh"},
    {label: "english", value: "en"},
]

//
export const document_status = [
    {value: "DRAFT", label: "草稿"},
    {value: "PUBLISHED", label: "已发布"}
] // 获取文档类型名称

// 电池类别
export const BatteryCategory = [
    {value: 'lmt', label: 'LMT电池', style: 'info'},
    {value: 'ev', label: '电动汽车电池', style: 'success'},
    {value: 'industrial', label: '工业电池', style: 'warning'},
    {value: 'stationary', label: '固定式电池', style: 'info'}
];

// 电池状态
export const BatteryStatus = [
    {value: 'Original', label: '原始'},
    {value: 'Repurposed', label: '重新用途'},
    {value: 'Reused', label: '重复使用'},
    {value: 'Remanufactured', label: '再制造'},
    {value: 'Waste', label: '废物'}
];

// 生命周期阶段
export const LifecycleStage = [
    {value: 'RawMaterialExtraction', label: '原材料提取'},
    {value: 'MainProduction', label: '主要生产'},
    {value: 'Distribution', label: '分销'},
    {value: 'Recycling', label: '回收'}
];

// 标签主题
export const LabelingSubject = [
    {value: 'SeparateCollection', label: '分类收集'},
    {value: 'HazardousMaterial', label: '危险材料'},
    {value: 'CarbonFootPrint', label: '碳足迹'},
    {value: 'ExtinguishingAgent', label: '灭火剂'}
];

// 电池组件
export const BatteryComponent = [
    {value: 'pack', label: '电池包'},
    {value: 'module', label: '电池模块'},
    {value: 'cell', label: '电池单元'}
];

// 文档类型
export const DocumentType = [
    {value: 'BillOfMaterial', label: '物料清单'},
    {value: 'Model3D', label: '3D模型'},
    {value: 'DismantlingManual', label: '拆卸手册'},
    {value: 'RemovalManual', label: '移除手册'},
    {value: 'OtherManual', label: '其他手册'},
    {value: 'Drawing', label: '图纸'}
];
export const StatusType = [
    {value: 'DRAFT', label: '草稿', style: 'info'},
    {value: 'PUBLISHED', label: '已发布', style: 'success'},
];
export const ExtinguishingAgentType = [
    {value: '干粉灭火器', label: '干粉灭火器'},
    {value: '二氧化碳灭火器', label: '二氧化碳灭火器'},
    {value: '沙土', label: '沙土'},
];

export const RecycledMaterialType = [
    {value: 'Cobalt', label: '钴'},
    {value: 'Lithium', label: '锂'},
    {value: 'Nickel', label: '镍'},
    {value: 'Manganese', label: '锰'},
];
export const hazardousSubstanceClassType = [
    {value: 'AcuteToxicity', label: '急性毒性'},
    {value: 'ChronicToxicity', label: '慢性毒性'},
    {value: 'EnvironmentalHazard', label: '环境危害'},
];
export const hazardousSubstanceImpactType = [
    {value: '健康危害', label: '健康危害'},
    {value: '环境危害', label: '环境危害'},
    {value: '安全危害', label: '安全危害'},
];
// 表单字段配置
export const NCM_ENUM = [
    {label: 'NCM', value: 'NCM'},
    {label: 'LFP', value: 'LFP'},
    {label: 'NCA', value: 'NCA'},
    {label: 'LCO', value: 'LCO'},
    {label: 'LMO', value: 'LMO'}
];